<em>import React from 'react'</em>

<em>export default ( <q>props</q> ) =></em> {
	<em>const <u>onClick</u> = ( ) =></em> {
		<em>const href</em> = <q>props.history</q>.<b>createHref</b>(<i>{</i> 		<em>// => #/home?id=10&code=20#50</em>
			<i>pathname</i>	: <u>'/home'</u>, 
			<i>search</i>		: <u>'?id=10&code=20'</u>,
			<i>hash</i>		: <u>'#50'</u>,
			<i>state</i>		: <u>{id:10,code:10}</u>
		<i>}</i>) 		
	}
	<em>return &lt;button onClick={<u>onClick</u>}&gt;click&lt;button&gt;</em>
}